import request from '@/utils/request';

//新闻列表
export function getNewsList(data) {
  return request({
    url: '/ssystem-api/api/news/newsList',
    method: 'post',
    data: data,
  });
}

//删除新闻列表
export function newsDel(data) {
  return request({
    url: '/ssystem-api/api/news/newsDel',
    method: 'post',
    data: data,
  });
}

//新增-or新闻列表
export function newsSave(data) {
  return request({
    url: '/ssystem-api/api/news/newsSave',
    method: 'post',
    data: data,
  });
}

//查看新闻列表详情
export function lookNewsDetail(data) {
  return request({
    url: '/ssystem-api/api/news/newsDetail',
    method: 'post',
    data: data,
  });
}
